package com.nicmic.blog.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.ModelAttribute;

import com.nicmic.blog.pojo.User;

/**
 * 
 * @author nicmic
 * @date 2016-08-24 11:22:34
 */
public interface UserDao {
	/**
	 * ����û�
	 * @param user
	 * @return
	 */
	public int add(@ModelAttribute User user);
	/**
	 * ɾ���û�
	 * @param id
	 * @return 
	 */
	public int delete(@Param("username") String username);
	/**
	 * �޸��û�
	 * @param user
	 * @return
	 */
	public int update(@ModelAttribute User user);
	/**
	 * ��ѯ�û�
	 * @param id
	 * @return
	 */
	public List<User> get(@Param("username") String username);
}
